package org.csu.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("commodity")
public class Commodity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String itemId;

    private String categoryId;

    private Integer source;

    private String itemName;

    private Double price;

    private Integer stock;

    private Integer status;

    private String description;

    private String subImage;

    private String image;

    private Integer star;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
